package com.foreknow.proxy.dyproxy;

public class TestDyProxy {
    public static void main(String[] args) {
        SuperMarketAction superMarketAction = new SuperMarketImpl();
        CompanyInvocationHandler invocationHandler = new CompanyInvocationHandler(superMarketAction);
        SuperMarketAction action = (SuperMarketAction) invocationHandler.createProxy();
        action.deliver();
        action.test();
    }
}
